package cn.zwk.product.web;

import cn.zwk.product.service.SkuInfoService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * @Description:
 * @Created: with IntelliJ IDEA.
 * @author: 夏沫止水
 * @createTime: 2020-06-19 11:21
 **/

@Controller
public class ItemController {

    @Resource
    private SkuInfoService skuInfoService;

    /**
     * 展示当前sku的详情
     * @param skuId
     * @return
     */
//    @GetMapping("/{skuId}.html")
//    public String skuItem(@PathVariable("skuId") Long skuId, Model model) throws ExecutionException, InterruptedException {
//
//        System.out.println("准备查询" + skuId + "详情");
//
//        SkuItemVo vos = skuInfoService.item(skuId);
//
//        model.addAttribute("item",vos);
//
//        return "item";
//    }
}
